reftests: Add reftest for the last 2 fixes
authorBenjamin Otte <otte@redhat.com>
Tue, 8 Nov 2016 01:23:30 +0000 (02:23 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 8 Nov 2016 01:32:39 +0000 (02:32 +0100)
Makes sure that the clipping we do when pushing a group is at the
correct place and in particular doesn't influence shadows.

testsuite/reftests/Makefile.am
testsuite/reftests/box-shadow-with-blend-mode.css [new file with mode: 0644]
testsuite/reftests/box-shadow-with-blend-mode.ref.ui [new file with mode: 0644]
testsuite/reftests/box-shadow-with-blend-mode.ui [new file with mode: 0644]

index dc56cb7bff854414472a42385264c7377fac1575..44227dcc8303e629e901d6c49f08025d0624340c 100644 (file)
@@ -173,15 +173,18 @@ testdata = \
        box-pseudo-classes.css \
        box-pseudo-classes.ref.ui \
        box-pseudo-classes.ui \
+       box-shadow-changes-modify-clip.css \
+       box-shadow-changes-modify-clip.ref.ui \
+       box-shadow-changes-modify-clip.ui \
        box-shadow-spec-inset.css \
        box-shadow-spec-inset.ref.ui \
        box-shadow-spec-inset.ui \
        box-shadow-spread.css \
        box-shadow-spread.ref.ui \
        box-shadow-spread.ui \
-       box-shadow-changes-modify-clip.css \
-       box-shadow-changes-modify-clip.ref.ui \
-       box-shadow-changes-modify-clip.ui \
+       box-shadow-with-blend-mode.css \
+       box-shadow-with-blend-mode.ref.ui \
+       box-shadow-with-blend-mode.ui \
        button-wrapping.ui \
        button-wrapping.ref.ui \
        color-transition.css \
diff --git a/testsuite/reftests/box-shadow-with-blend-mode.css b/testsuite/reftests/box-shadow-with-blend-mode.css
new file mode 100644 (file)
index 0000000..caceef5
--- /dev/null
@@ -0,0 +1,19 @@
+button {
+  all: unset;
+  margin: 10px;
+}
+
+button {
+  box-shadow: 0 0 5px;
+  background-color: transparent;
+  background-blend-mode: lighten, normal;
+  background-image: image(chartreuse), image(tomato);
+}
+
+button#reference {
+  box-shadow: 0 0 5px;
+  background-color: tomato;
+  background-blend-mode: lighten;
+  background-image: image(chartreuse);
+
+}
diff --git a/testsuite/reftests/box-shadow-with-blend-mode.ref.ui b/testsuite/reftests/box-shadow-with-blend-mode.ref.ui
new file mode 100644 (file)
index 0000000..994e50d
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.19.0 -->
+<interface>
+  <requires lib="gtk+" version="3.16"/>
+  <object class="GtkAction" id="action1"/>
+  <object class="GtkAction" id="action2"/>
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkButton" id="b">
+        <property name="name">reference</property>
+        <property name="label" translatable="yes">Hello World!</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">True</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/box-shadow-with-blend-mode.ui b/testsuite/reftests/box-shadow-with-blend-mode.ui
new file mode 100644 (file)
index 0000000..b2ae729
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.19.0 -->
+<interface>
+  <requires lib="gtk+" version="3.16"/>
+  <object class="GtkAction" id="action1"/>
+  <object class="GtkAction" id="action2"/>
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkButton" id="b">
+        <property name="label" translatable="yes">Hello World!</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">True</property>
+      </object>
+    </child>
+  </object>
+</interface>